/**
 * Created by Administrator on 2017/7/19 0019.
 */
function add(){
    var sum = 0;
    for(var i = 0;i<arguments.length;i++){
        sum+=arguments[i]
    }
    return sum
}

function max(){
    var max = 0;
    for(var i = 0;i<arguments.length;i++){
        if(arguments[i]>max){
            max = arguments[i]
        }
    }
    return max
}
function min(){
    var min = 0;
    for(var i = 0;i<arguments.length;i++){
        if(arguments[i]<min){
            min = arguments[i]
        }
    }
    return min
}

exports.add = add;
exports.max = max;
exports.min = min;